@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

@import "@/modules/components/header_menu.scss";
@import "@/modules/components/header_search.scss";
@import "@/modules/components/mobile_nav.scss";
@import "@/modules/product_detail.scss";
@import "@/modules/header.scss";
@import "@/modules/components/currency.scss";
@import "@/modules/animation.scss";
@import "@/modules/collection_product.scss";
@import "@/modules/block_collection_list.scss";
@import "@/modules/block_marquee.scss";
@import "@/modules/block_slides.scss";
@import "@/modules/block_collection.scss";
@import "@/modules/block_image_text_list.scss";
@import "@/modules/block_logo_list.scss";
@import "@/modules/block_gallery.scss";
@import "@/modules/components/footer_menu.scss";
@import "@/modules/footer.scss";
@import "@/modules/block_banner_list.scss";
@import "@/modules/components/oem_header.scss";

html {
  font-size: 16px;
}

.general-price {
  color: var(--buying_parice_color);
  white-space: nowrap;
  font-size: 16px;
  font-weight: bold;
}

.general-oldprice {
  text-decoration: line-through;
  color: var(--original_price_color);
  white-space: nowrap;
  font-size: 16px;
}

.public_title_color {
  color: var(--title_color);
}

.public_title {
  font-family: var(--title_font_family);
  font-style: var(--title_font_style);
  font-weight: var(--title_font_weigth);
  letter-spacing: var(--title_letter_spacing);
  font-size: var(--title_font_size);
  @media (max-width: 767px) {
    font-size: max(20px, calc(var(--title_font_size) * var(--wap_title_scale)));
  }
}

.title_family {
  font-family: var(--title_font_family);
  font-style: var(--title_font_style);
  font-weight: var(--title_font_weigth);
  letter-spacing: var(--title_letter_spacing);
}

.block_title {
  margin-bottom: 30px;
  h2 {
    font-weight: 700;
    @media (max-width: 767px) {
      font-size: max(20px, calc(var(--title_font_size) * var(--wap_title_scale)));
    }
  }
  .block_detail {
    margin-top: 14px;
  }
}
.block_title_custom {
  margin-bottom: 30px;
  position: relative;
  h2 {
    color: var(--title_color);
    font-family: var(--title_font_family);
    font-style: var(--title_font_style);
    font-weight: 700;
    letter-spacing: var(--title_letter_spacing);
    font-size: var(--title_font_size);

    @media (max-width: 767px) {
      font-size: max(20px, calc(var(--title_font_size) * var(--wap_title_scale)));
    }
  }

  .block_detail {
    color: var(--detail_color);
    margin-top: 14px;
  }

  .title_more {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--title_color);
  }
}

.title_line {
  h2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    &::before {
      background-color: #222;
      content: " ";
      flex: 1;
      height: 2px;
      margin-right: 29px;
    }
    &::after {
      background-color: #222;
      content: " ";
      flex: 1;
      height: 2px;
      margin-left: 29px;
    }
  }
}

.public_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  font-size: calc(var(--general_font_size) + 2px);
  font-weight: bold;
  background-color: var(--main_button_bg);
  color: var(--main_button_color);
  border: 1px solid var(--main_button_bg);
  border-radius: var(--button_border_radius);
  transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
  min-width: 190px;
  &:hover {
    background-color: var(--secondary_button_bg);
    border-color: var(--main_button_bg);
    color: var(--main_button_bg);
  }
  @media screen and (max-width: 767px) {
    min-width: auto;
  }
}

:is(.block_collection_slides,.block_gallery) .public_swiper_nav_button {
  .swiper-button-next,.swiper-button-prev {
    @media screen and (max-width: 767px) {
      display: none;
    }
  }
}

.public_swiper_nav_button {
  @media screen and (min-width: 1024px) {
    .swiper-button-prev {
      left: 0;
      transform: translateX(-50%);
    }
    .swiper-button-next {
      right: 0;
      transform: translateX(50%);
    }
  }
  .swiper-button-prev,
  .swiper-button-next {
    background-image: none;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    
    &.swiper-button-disabled {
      opacity: 0.4;
    }
    svg {
      width: 17px;
      height: 17px;
      fill: #323232;
      color: #323232;
      stroke: transparent;
    }
    &:hover {
      background-color: #f8f8f8;
      border-color: #f8f8f8;
    }
  }
  .swiper-button-prev {
    svg {
      transform: rotate(180deg);
    }
  }
  .swiper-pagination {
    bottom: 0;
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 7px;
        opacity: 1;
        background-color: transparent;
        box-sizing: border-box;
        border: 1px solid #1d1f21;
        &.swiper-pagination-bullet-active {
            background-color: #1d1f21;
        }
    }
}
}

.secondary_btn,.main_btn {
  font-family: var(--title_font_family);
  font-weight: bold;
}